home *** CD-ROM | disk | FTP | other *** search
- Submitted-by: meulenbr@prl.philips.nl (Frans Meulenbroeks)
-
- I'm trying to implement controlling ttys as specified in POSIX 1003.1,
- but unfortunately the book is not very clear on what to do if
- there is no controlling tty, and an open on /dev/tty is attempted.
- My best guess would be to reject the open and return an errno.
- If that is right, then what is the best errno value to return?
- EACCESS?? If that is wrong, what else should be done?
-
- Also, it is not quite clear to me what should happen if the controlling
- tty is disassociated from the session, while a child process still
- has a stream open to /dev/tty. The standard says that you should
- behave as if a modem was disconnected, but what does that exactly
- mean in operational terms (e.g. what happens with successive reads,
- ioctls and writes; which error codes need to be returned etc.).
-
- Any comment clearing up this matter is highly welcome.
-
- Thanks,
-
- --
- Frans Meulenbroeks (meulenbr@prl.philips.nl)
- Philips Research Laboratories
-
- Volume-Number: Volume 31, Number 21
-
-